package com.tsd.base.service;

import com.tsd.base.entity.BaseUnitConvertor;
import com.tsd.base.entity.BaseUnitConvertorExt;
import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：BaseUnitConvertor服务实现层接口
 *
 * @author david
 * @date 2024/02/19 14:01:08
 */
public interface BaseUnitConvertorService {

    /**
     * 描述：根据id获取BaseUnitConvertor
     *
     * @param id
     */
    BaseUnitConvertor getBaseUnitConvertorById(Long id) throws Exception;

    /**
     * 描述：根据sid获取BaseUnitConvertor
     *
     * @param sid
     */
    BaseUnitConvertorExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据sid列表删除BaseUnitConvertor
     *
     * @param list
     */
    void deleteBaseUnitConvertors(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新BaseUnitConvertor
     *
     * @param record
     * @param opUser
     */
    void saveBaseUnitConvertor(BaseUnitConvertor record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询BaseUnitConvertor
     *
     * @param params
     * @param page
     */
    List<BaseUnitConvertorExt> findBaseUnitConvertors(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询BaseUnitConvertor
     *
     * @param params
     */
    List<BaseUnitConvertorExt> findBaseUnitConvertors(Map<String, Object> params) throws Exception;

    /**
     * 批量保存单位转换器
     *
     * @param t
     * @param opUser
     * @throws Exception
     */
    void batchSaveBaseUnitConvertor(List<BaseUnitConvertorExt> t, SysUser opUser) throws Exception;
}
